package cn.java.xml;

import java.io.Serializable;

public class Product implements Serializable {
	private String discount, factoryaddr, itemno, name, unit;
	private int stockcount;
	private double price;

	public Product() {
		super();
	}

	public Product(String discount, String factoryaddr, String itemno,
			String name, String unit, int stockcount, double price) {
		super();
		this.discount = discount;
		this.factoryaddr = factoryaddr;
		this.itemno = itemno;
		this.name = name;
		this.unit = unit;
		this.stockcount = stockcount;
		this.price = price;
	}

	@Override
	public String toString() {
		return "Product [discount=" + discount + ", factoryaddr=" + factoryaddr
				+ ", itemno=" + itemno + ", name=" + name + ", unit=" + unit
				+ ", stockcount=" + stockcount + ", price=" + price + "]";
	}

	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}

	public String getFactoryaddr() {
		return factoryaddr;
	}

	public void setFactoryaddr(String factoryaddr) {
		this.factoryaddr = factoryaddr;
	}

	public String getItemno() {
		return itemno;
	}

	public String setItemno(String itemno) {
		this.itemno = itemno;
		return "ok";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public int getStockcount() {
		return stockcount;
	}

	public void setStockcount(int stockcount) {
		this.stockcount = stockcount;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

}
